package com.yima.baseproj.module.app.dict.dict;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yima.baseproj.module.app.dict.dict.model.AppDictAddParamModel;
import com.yima.baseproj.module.config.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("app_dict")
public class AppDictEntity extends BaseEntity {

  @ApiModelProperty(value = "标识")
  @TableField(value = "type")
  private String type;

  @ApiModelProperty(value = "标识名称")
  @TableField(value = "name")
  private String name;

  @ApiModelProperty(value = "启用，禁用")
  @TableField(value = "state")
  private Boolean state;

  public void setData(AppDictAddParamModel paramModel){
    this.type = paramModel.getType();
    this.name = paramModel.getName();
    this.state = paramModel.getState();
  }
}